package org.coding.springbootdemocommandline.factorybean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @auth guoxh
 * @date 2020/10/19 5:08 下午
 * @desc
 **/
@Component
public class FactoryBeanLearn<T> implements FactoryBean<AppUserService> {
    @Override
    public AppUserService getObject() throws Exception {
        return new AppUserServiceImpl(null);
    }

    @Override
    public Class<?> getObjectType() {
        return AppUserServiceImpl.class;
    }
}
